.\"                                      Hey, EMACS: -*- nroff -*-
.TH RULEXDB_DATASET_NAME 3 "February 22, 2012"
.SH NAME
rulexdb_dataset_name \- get pointer to the dataset name string
.SH SYNOPSIS
.nf
.B #include <rulexdb.h>
.sp
.BI "const char *rulexdb_dataset_name(int " item_type );
.fi
.SH DESCRIPTION
The
.BR rulexdb_dataset_name ()
function gets pointer to the constant string containing internal name
of the dataset identified by
.I item_type
argument that may accept one of the following values:
.TP
.B RULEXDB_LEXBASE
The \fBImplicit\fP dictionary.
.TP
.B RULEXDB_EXCEPTION
The \fBExplicit\fP dictionary.
.TP
.B RULEXDB_LEXCLASS
The \fBClassifiers\fP ruleset.
.TP
.B RULEXDB_PREFIX
The \fBPrefix detectors\fP ruleset.
.TP
.B RULEXDB_RULE
The \fBGeneral\fP ruleset.
.TP
.B RULEXDB_CORRECTOR
The \fBCorrectors\fP ruleset.
.PP
Note that the dataset must be specified explicitly. The value
.B RULEXDB_DEFAULT
is not allowed here.
.SH "RETURN VALUE"
The
.BR rulexdb_dataset_name ()
function returns pointer to the dataset name string or NULL for
unknown dataset.
.SH SEE ALSO
.BR rulexdb_classify (3),
.BR rulexdb_close (3),
.BR rulexdb_discard_dictionary (3),
.BR rulexdb_discard_ruleset (3),
.BR rulexdb_fetch_rule (3),
.BR rulexdb_lexbase (3),
.BR rulexdb_load_ruleset (3),
.BR rulexdb_open (3),
.BR rulexdb_remove_item (3),
.BR rulexdb_remove_rule (3),
.BR rulexdb_remove_this_item (3),
.BR rulexdb_retrieve_item (3),
.BR rulexdb_search (3),
.BR rulexdb_seq (3),
.BR rulexdb_subscribe_item (3),
.BR rulexdb_subscribe_rule (3)
.SH AUTHOR
Igor B. Poretsky <poretsky@mlbox.ru>.
